import * as index from '@/api/index.js'
export default {
	data() {
		return {
			sylist:[],
			list: [{
				image: '/static/index/1.png',
				url:''
			},
			{
				image: '/static/index/2.png',
				url:''
			},
			{
				image: '/static/index/3.png',
				url:''
			},
			{
				image: '/static/index/4.png',
				url:''
			},
			{
				image: '/static/index/5.png',
				url:''
			},
			{
				image: '/static/index/6.png',
				url:''
			}],
			form:{
				pages:1,
				limit:10
			}
		}
	},
	// computed: {
	// 	assetUrl() {
	// 		return this.$tools.baseURL;
	// 	},
	// },
	onShow() {},
	onLoad(option) {
		this.getsyList()
	},
	methods: {
		// 跳转到水果店
		fruitsBnt() {
			uni.navigateTo({
				url: '/pages/home/fruits/index'
			})
		},
		//跳转
		jump(item) {
			this.$tools.navigate('/pages/community/detail/index?id='+item.id)
		},
		jumps(){
			this.$tools.navigate('/pages/community/index',true)
		},
		getsyList(){
			index.getsyList(this.form).then(res=>{
				this.sylist.push(...res.page)
			})
		}
		
	}
}